package cn.renxuan.entity;

import java.time.LocalDateTime;

/*
 * 基础扩展模型对象
 */
public class BaseEntity<TUserId, TPrimaryKey> extends Entity<TPrimaryKey> {

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人Id
     */
    private TUserId createUserId;

    /**
     * 修改时间
     */
    private LocalDateTime lastModifyTime;

    /**
     * 修改人Id
     */
    private TUserId lastModifyUserId;

    /**
     * 是否删除
     */
    private Boolean isDeleted;

    /**
     * 删除时间
     */
    private LocalDateTime deletionTime;

    /**
     * 删除人Id
     */
    private TUserId deleterUserId;

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public TUserId getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(TUserId createUserId) {
        this.createUserId = createUserId;
    }

    public LocalDateTime getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(LocalDateTime lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public TUserId getLastModifyUserId() {
        return lastModifyUserId;
    }

    public void setLastModifyUserId(TUserId lastModifyUserId) {
        this.lastModifyUserId = lastModifyUserId;
    }

    public LocalDateTime getDeletionTime() {
        return deletionTime;
    }

    public void setDeletionTime(LocalDateTime deletionTime) {
        this.deletionTime = deletionTime;
    }

    public TUserId getDeleterUserId() {
        return deleterUserId;
    }

    public void setDeleterUserId(TUserId deleterUserId) {
        this.deleterUserId = deleterUserId;
    }
}
